<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
		xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
	>
<head>
	<title>sgi Application</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<a4j:loadStyle src="resources/css/screen.css" media="all" />
	<a4j:loadStyle src="../../resources/css/screen.css" media="all" />
	 <a4j:loadStyle src="resources/css/reset.css"   />
	 <a4j:loadStyle src="resources/css/form.css"   />
	     <a4j:loadStyle src="../../resources/css/reset.css"   />
        <a4j:loadStyle src="../../resources/css/layout.css"   />
        <a4j:loadStyle src="../../resources/css/barra-governo.css"   />
        <a4j:loadStyle src="../../resources/css/jquery-ui.css"   />
        <a4j:loadStyle src="../../resources/css/form.css"   />
        <a4j:loadStyle src="../../resources/css/menu.css"   />
        <a4j:loadStyle src="../../resources/css/screen.css"   />
	
	<a4j:outputPanel ajaxRendered="true">
		<a4j:loadScript src="/resources/js/jquery-1.7.2.js" />	
		<script>
		 	//<![CDATA[
   				jQuery.noConflict();   			    
   			//]]>
   		</script>

</a4j:outputPanel>
	
</head>
<body >
<h:panelGroup id="page" layout="block">
	<h:panelGroup id="header" layout="block">
	<h:form id="formLogout">
	<div style="padding-left: 900px" >
			<h:commandLink value="Logout" action="#{loginBean.logout}" ></h:commandLink>
		</div>
	</h:form>
	<div style="text-align:left; padding-bottom: 10px ">
		<h1><a href="home.jsf">SGI</a></h1>
	</div>
	</h:panelGroup>
	<h:form id="menuForm">
		<h:panelGroup id="header" layout="">
			<div id="barraMenu"><rich:toolBar>
				<rich:dropDownMenu>
					<f:facet name="label">
						<h:panelGroup>
<!--							<h:graphicImage value="/images/icons/copy.gif" styleClass="pic" />-->
							<h:outputText value="Cadastro" />
						</h:panelGroup>
					</f:facet>
					<rich:menuItem submitMode="ajax" value="Membro"
						action="#{baseView.redirect}" >
						<f:setPropertyActionListener target="#{baseView.foward}"
							value="membroCadastro" />
					</rich:menuItem>
					<rich:menuItem submitMode="ajax" value="Home"
						action="#{baseView.redirect}" >
						<f:setPropertyActionListener target="#{baseView.foward}"
							value="home" />
					</rich:menuItem>
				</rich:dropDownMenu>
				<rich:dropDownMenu>
				<f:facet name="label">
						<h:panelGroup>
<!--							<h:graphicImage value="/images/icons/copy.gif" styleClass="pic" />-->
							<h:outputText value="Pesquisar" />
						</h:panelGroup>
					</f:facet>
					<rich:menuItem submitMode="ajax" value="Membro"
						action="#{baseView.redirect}" >
						<f:setPropertyActionListener target="#{baseView.foward}"
							value="membroPesquisa" />
					</rich:menuItem>
				
				</rich:dropDownMenu>
			</rich:toolBar></div>
		</h:panelGroup>
	</h:form>

	<h:panelGroup id="container" layout="block">
		<!--			<h:panelGroup id="sidebar" layout="block">-->
		<!--				<h1>Sidebar</h1> Content for the sidebar goes here-->
		<!--			</h:panelGroup>-->
		<h:panelGroup id="content" layout="block" >
			<ui:insert name="content">Main Content</ui:insert>
		</h:panelGroup>
	</h:panelGroup>
	<h:panelGroup id="footer" layout="block">#{messages.footerText}<br />Generated using the Knappsack Java EE Maven Archetypes from <a
			href="http://www.AndyGibson.net">www.AndyGibson.net</a>
	</h:panelGroup>
</h:panelGroup>

</body>
</html>
